/*------------------------------------------------------------------------------------------------\
| Horrible X-Wing game by Steven Haber
| st_haber@hotmail.com
|
| craft.h: contains class Craft, which is any ship (friend of foe) used in the game
\------------------------------------------------------------------------------------------------*/

#ifndef CRAFT_H
#define CRAFT_H

#include "xwing.h"

class Sound;

class Craft
{
public:
	Craft(sf::Sprite craft, float initialX, float initialY, sf::RenderWindow *out, Sound *sounds);

	void alterCraftX(float velX);
	void alterCraftY(float velY);
	void drawCraft();
	void die();

	float getTop();
	float getLeft();
	float getWidth();
	float getHeight();

private:
	sf::Sprite mCraft;
	sf::RenderWindow *mOut;
	
	Sound *mSounds;

	float mVelX;
	float mVelY;
};

#endif